package com.sftz.assets.enums;

import com.uxuexi.core.common.enums.IEnum;

/**
 * 课程资源类型
 *
 * @author   李江
 * @Date	 2017年11月21日
 */
public enum ResourcesSortEnum implements IEnum {
	VIDEO(1, "视频"), AUDIO(2, "音频"), FILE(3, "文件"), OUTLINE(4, "大纲"), PREVIEWVIDEO(5, "预览视频"), LINK(6, "链接"), IMAGE_TEXT(
			7, "图文"), DOWNLOAD_TEXT(8, "下载资料"), HOMEWORK(9, "作业"), MIND(10, "思维导图"), DISCUSS(11, "讨论");
	private int key;
	private String value;

	private ResourcesSortEnum(final int key, final String value) {
		this.value = value;
		this.key = key;
	}

	@Override
	public String key() {
		return String.valueOf(key);
	}

	@Override
	public String value() {
		return value;
	}

	public int intKey() {
		return key;
	}
}
